#if !defined(AFX_DLGGUIDEONEUNIT_H__B6593913_F712_47EC_B485_F02BEABF80BB__INCLUDED_)
#define AFX_DLGGUIDEONEUNIT_H__B6593913_F712_47EC_B485_F02BEABF80BB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgGuideOneUnit.h : header file
//
#include "DlgOneUnit.h"

/////////////////////////////////////////////////////////////////////////////
// CDlgGuideOneUnit dialog

class CDlgGuideOneUnit : public CDialog
{
private:
	BOOL				m_bInited ;
public:
	CDlgOneUnit*		m_DlgOneUnit ;
	void	SetDlgOneUnit();
public:
	int		SelectUnit(char *szNumber);
	void	ModifyUnitNumber(int nUnitID,CString strNumber);
	void	FillMaplayerUnit(int nMaplayerID,CComboBox* cb);
	int     GetSelectUnitID();
	void	SetDlgOneUnit(CDlgOneUnit* pDlg){m_DlgOneUnit=pDlg;m_DlgOneUnit->SetGuideList(&m_Vs);};
	int     RefreshList();
	CDlgGuideOneUnit(CWnd* pParent = NULL);   // standard constructor
// Dialog Data
	//{{AFX_DATA(CDlgGuideOneUnit)
	enum { IDD = IDD_Dlg_Guide_OneUnit };
	CVSFlexGrid	m_Vs;
	// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgGuideOneUnit)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgGuideOneUnit)
		// NOTE: the ClassWizard will add member functions here
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnDestroy();
	DECLARE_EVENTSINK_MAP()
	afx_msg void BeforeEditVs(long Row, long Col, BOOL FAR* Cancel);
	void AfterSelChangeVs(long OldRowSel, long OldColSel, long NewRowSel, long NewColSel);
	afx_msg LRESULT OnSelectRow(WPARAM, LPARAM);	 
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGGUIDEONEUNIT_H__B6593913_F712_47EC_B485_F02BEABF80BB__INCLUDED_)
